package GUI;

import javax.swing.*;
import java.awt.*;

/**
 * This class creates instance of NewUserAuthGui
 * to display when needed
 * @author Natali
 *
 */
public class NewUserAuthGui extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private JTextArea textArea;
	private JTextArea textArea1;
	private JButton canButton;
	private JButton subButton;
	
	/**
	 * the constructor
	 */
	public NewUserAuthGui(){
		super();
		textArea = new JTextArea();
		textArea1 = new JTextArea();
		subButton = new JButton("submit");
		canButton = new JButton("cancel");
		initialize();
	}
	
	/**
	 * This method initializes the NewUserAuthGui
	 */
	public void initialize(){	
		JLabel lblIcmSystem = new JLabel("register new user");
		lblIcmSystem.setForeground(Color.BLUE);
		lblIcmSystem.setFont(new Font("Arial Black", Font.BOLD, 17));
		lblIcmSystem.setBounds(128, 11, 362, 50);
		add(lblIcmSystem);
		
		JLabel lblUserName = new JLabel("User Name:");
		lblUserName.setFont(new Font("Arial", Font.BOLD, 13));
		lblUserName.setBounds(23, 78, 86, 50);
		add(lblUserName);
		
		textArea.setBounds(139, 84, 207, 40);
		add(textArea);
		textArea.setColumns(10);
		
		JLabel lblPassword = new JLabel("Authorization:");
		lblPassword.setFont(new Font("Arial", Font.BOLD, 13));
		lblPassword.setBounds(23, 138, 106, 60);
		add(lblPassword);
		
		
		textArea1.setBounds(139, 149, 207, 40);
		add(textArea1);
		textArea1.setColumns(10);
		
		
		subButton.setFont(new Font("Arial", Font.PLAIN, 12));
		subButton.setBounds(284, 218, 122, 40);
		add(subButton);
		
		
		canButton.setFont(new Font("Arial", Font.PLAIN, 12));
		canButton.setBounds(33, 218, 122, 40);
		add(canButton);
		
		setLayout(null);
		setSize(new Dimension(500, 300));	
		
	}
	/**
	 * 
	 * @return JTextArea with the user name 
	 */
	public JTextArea getTextArea_userName(){
		return textArea;
	}
	
	/**
	 * 
	 * @return JTextArea with the authorization 
	 */
	public JTextArea getTextArea_authorization() {
		
		return textArea1;
	}
	
	/**
	 * 
	 * @return the submit button
	 */
	public JButton getSubButt(){
		return subButton;
	}
	/**
	 * 
	 * @return the cancel button
	 */
	public JButton getCanButt(){
		return canButton;
	}
}
